/*
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.thoughtbot.expandablecheckrecyclerview.expand;

import ohos.agp.components.Image;
import ohos.agp.components.ListContainer;
import ohos.agp.components.element.VectorElement;

/**
 * ExpandFatherItem
 *
 * @since 2021-07-16
 */
public class ExpandFatherItem {
    private VectorElement imageElement;
    private String name;
    private VectorElement imageLabelElement;
    private ListContainer listContainer;

    // 组件的展开状态
    private boolean isExpand;

    // 父组件标签
    private String tag;
    private Image image;

    /**
     * 构造函数
     *
     * @param name name
     */
    public ExpandFatherItem(String name) {
        this.name = name;
    }

    /**
     * 构造函数
     *
     * @param imageElement imageElement
     * @param name name
     */
    public ExpandFatherItem(VectorElement imageElement,String name) {
        this.imageElement = imageElement;
        this.name = name;
    }

    /**
     * 构造函数
     *
     * @param imageElement imageElement
     * @param name name
     * @param imageLabelElement imageLabelElement
     */
    public ExpandFatherItem(VectorElement imageElement, String name, VectorElement imageLabelElement) {
        this.imageElement = imageElement;
        this.name = name;
        this.imageLabelElement = imageLabelElement;
    }

    /**
     * 构造函数
     *
     * @param tag tag
     * @param imageElement imageElement
     * @param name name
     * @param imageLabelElement imageLabelElement
     */
    public ExpandFatherItem(String tag, VectorElement imageElement, String name, VectorElement imageLabelElement) {
        this.tag = tag;
        this.imageElement = imageElement;
        this.name = name;
        this.imageLabelElement = imageLabelElement;
    }

    public VectorElement getImageElement() {
        return imageElement;
    }

    public void setImageElement(VectorElement imageElement) {
        this.imageElement = imageElement;
    }

    public VectorElement getImageLabelElement() {
        return imageLabelElement;
    }

    public void setImageLabelElement(VectorElement imageLabelElement) {
        this.imageLabelElement = imageLabelElement;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ListContainer getListContainer() {
        return listContainer;
    }

    public void setListContainer(ListContainer listContainer) {
        this.listContainer = listContainer;
    }

    public boolean isExpand() {
        return isExpand;
    }

    public void setExpand(boolean expand) {
        isExpand = expand;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Image getImage() {
        return image;
    }

    public void setImage(Image image) {
        this.image = image;
    }
}
